﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Samples.Entities;

// Here's a sample function supported on the host: GetBorrower()
// The clients sends in a GUID (BorrowerID) and gets back a Borrower Entity (MyBorrower)
namespace Samples.Contract.RequestsAndResponses
{
  // Tip: name your request: FunctionName + "I" (for Input) - in this case 'GetBorrowerI'
  public class GetBorrowerRaisesExceptionI : Albatross.Common.Messaging.DotNetRequest
  {
    public virtual Guid BorrowerID
    {
      get;
      set;
    }
  }

  // Tip: name your response: FunctionName + "O" (for Output) - in this case 'GetBorrowerO'
  public class GetBorrowerRaisesExceptionO : Albatross.Common.Messaging.Response
  {
    public virtual Borrower MyBorrower { get; set; }
  }

  // Tip: name your request: FunctionName + "I" (for Input) - in this case 'GetBorrowerI'
  public class GetBorrowerRaisesException2I : Albatross.Common.Messaging.DotNetRequest
  {
    public virtual Guid BorrowerID
    {
      get;
      set;
    }
  }

  // Tip: name your response: FunctionName + "O" (for Output) - in this case 'GetBorrowerO'
  public class GetBorrowerRaisesException2O : Albatross.Common.Messaging.Response
  {
    public virtual String ExceptionMessage { get; set; }
    public virtual Borrower MyBorrower { get; set; }
  }

}
